﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RWLibrary.Logic.BooleanExpression
{
    public class Or : BinaryExpression
    {
        public Or(IBooleanExpression left, IBooleanExpression right)
        {
            Left = left;
            Right = right;
        }
        public override bool Test(State s)
        {
            return Left.Test(s) || Right.Test(s); 
        }

        public override string ToString()
        {
            return "(" + Left.ToString() + "||" + Right.ToString() + ")";
        }
    }
}
